package org.dtrd.modules.doctor.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.doctor.entity.po.DtrdEntRdDoctorTeam;

/**
 * <p>
 * 
 * </p>
 *
 * @author QR
 * @since 2021-11-30 16:48:37
 */
@Getter
@Setter
@ApiModel(value = "医生分组关系数据传输对象")
public class TeamInfo {

    private Integer dataId;

    @ApiModelProperty("团队名称")
    private String name;

    @ApiModelProperty("团队管理者名字")
    private String managerName;

    @ApiModelProperty("管理者id")
    private Integer managerId;

    @ApiModelProperty("团队描述")
    private String description;


    public TeamInfo parseFromPo(DtrdEntRdDoctorTeam po) {
        dataId = po.getDataId();
        name = po.getName();
        managerId = po.getManageDoctorId();
        description = po.getDescription();
        return this;
    }


}
